<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html>
<html>
<head>
	<meta charset="utf-8">
	<title>后台管理系统</title>
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<meta name="apple-mobile-web-app-status-bar-style" content="black">
	<meta name="apple-mobile-web-app-capable" content="yes">
	<meta name="format-detection" content="telephone=no">
	<link rel="stylesheet" href="/layui/css/layui.css" media="all" />
	<%--<link rel="stylesheet" href="/css/public.css" media="all" />--%>
	<style>
		#tree li a:hover,#tree li a:active,#tree li a:focus {
			color: #1E9FFF;
		}
	</style>
</head>
<body class="childrenBody">
<%--
<div class="layui-card layadmin-header">
	<div class="layui-breadcrumb" lay-filter="breadcrumb">
		<a lay-href="">主页</a>
		<a><cite>菜单管理</cite></a>
	</div>
</div>--%>
<div class="layui-fluid" id="LAY-app-table">
	<div class="layui-card layui-row layui-col-space15" style="padding: 15px;">
		<div class="orgbox layui-col-md2">
			<ul id="tree"></ul>
		</div>
		<div class="site-tips layui-col-md10" id="demo2-view">
			<blockquote class="layui-elem-quote quoteBox">
				<form class="layui-form">
					<div class="layui-inline">
						<a class="layui-btn layui-btn-normal addBtn">添加</a>
					</div>
					<div class="layui-inline">
						<a class="layui-btn layui-btn-danger layui-btn-normal delBtn">删除</a>
					</div>
				</form>
			</blockquote>
			<div id="viewForm">
				点击左侧菜单，右侧将会显示当前点击节点的对应内容
			</div>
		</div>
	</div>
</div>
<script id="formBox" type="text/html">
	<div></div>
	<form class="layui-form" action="" lay-filter="component-form-element">
		<div class="layui-form-item">
			<div class="layui-col-lg6">
				<label class="layui-form-label">标签名称：</label>
				<div class="layui-input-inline">
					<input type="hidden" name="id" value="{{d.id}}">
					<input type="text" name="tagValue" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{{d.name}}">
				</div>
			</div>
		</div>
		<div class="layui-row layui-col-space10 layui-form-item">
			<div class="layui-col-lg6">
				<label class="layui-form-label">上级分类：</label>
				<div class="layui-input-block">
					<input name="pid" type="text" id="tree-select" lay-filter="tree" class="layui-input" value="{{d.pid}}">
				</div>
				<%--<label class="layui-form-label"></label><cite style="color: red;"></cite>--%>
			</div>
		</div>
		<%--<div class="layui-form-item">
			<div class="layui-col-lg6">
				<label class="layui-form-label">排序：</label>
				<div class="layui-input-inline">
					<input type="text" name="sort" lay-verify="required" placeholder="" autocomplete="off" class="layui-input" value="{{d.sort}}">
				</div>
			</div>
		</div>--%>
		<div class="layui-form-item layui-form-text">
			<label class="layui-form-label">描述：</label>
			<div class="layui-input-block">
				<textarea name="tagDesc" placeholder="请输入内容" class="layui-textarea">{{d.tagDesc}}</textarea>
			</div>
		</div>
		<div class="layui-form-item">
			<div class="layui-input-block">
				<button class="layui-btn" lay-submit lay-filter="edit">提交修改</button>
				<button type="reset" class="layui-btn layui-btn-primary">重置</button>
			</div>
		</div>
	</form>
</script>

<style>
	.orgbox{
		display: inline-block;
		/*min-height: 410px;*/
		border: 1px solid #ddd;
		overflow: auto;
	}
	.site-tips{
		display: inline-block;
		vertical-align: top;
	}
</style>
<script type="text/javascript" src="/layui/layui.js"></script>
<script src="/layui/mymodule/common.js"></script>
<script type="text/javascript" src="/js/agritech/agt_tag/tag.js"></script>
</body>
</html>